package com.rightsidetech.trade.dtos.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("修改订单地址")
public class TdCommodityUserAppUpdateAddressRequest implements Serializable {
    @ApiModelProperty(value = "订单编号",required = true)
    @NotBlank(message = "订单编号不能为空")
    @Length(max = 18,message = "订单编号过长")
    private String orderNo;

    @ApiModelProperty(value = "地址id", required = true)
    @NotNull(message = "地址不能为空")
    private Long addressId;

}
